package my.test.mediatorpattern.best;

/**
 * @author:许玉康
 * @Date: 2019/7/14 14:05
 */
public abstract class AbstractMediator {
    protected Purchase purchase;
    protected Sale sale;
    protected Stock stock;

    public AbstractMediator() {

        purchase = new Purchase(this);
        sale = new Sale(this);
        stock = new Stock(this);
    }

    //中介者最重要的方法叫做时间方法，处理多个对象之间的关系
    public abstract void execute(String str, Object...object);
}
